package com.sojson.websocket.util.enums;

/**
 * ServerSocket控阀类型枚举类
 *
 * @author liu
 * @date 2021-04-12
 */
public enum EElectricType {

    /** 4G */
    FOUR("4G", 1),
    /** 采集器 */
    HARVESTER("采集器", 2);

    /** 功能名称 */
    private final String name;
    /** 功能代码 */
    private final int code;

    EElectricType(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public int getCode() {
        return code;
    }

}